import { isMobile } from '@/utils';

export const goDeliveryMap = () => {
  const url = process.env.VUE_APP_MAP_PATH + '/#/pc'
  isMobile() ? window.location.href = url : window.open(url, `xmbz_delivery_map`)
}

export const goInvoice = (xmbzNo) => {
  const url = process.env.VUE_APP_INVOICE_PATH + '/#/home?xmbzno=' + xmbzNo
  isMobile() ? window.location.href = url : window.open(url, `xmbz_invoice_${xmbzNo}`)
}
